//
//  NSObject+Scriptability.m
//  ScriptableDemo
//
//  Created by lg on 2020/5/27.
//  Copyright © 2020 lg. All rights reserved.
//

#import "NSObject+Scriptability.h"

@implementation NSObject (Scriptability)

- (void)returnError:(int)n string:(NSString *)s {
    NSScriptCommand *c = [NSScriptCommand currentCommand];
    [c setScriptErrorNumber:n];
    if (s) {
        [c setScriptErrorString:s];
    }
}

@end
